*{
  padding: 0;
  margin: 0;
}
.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.verification-container {
  margin: 20px 0;
}

.puzzle-container {
  position: relative;
  height: 160px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.puzzle-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/seed/puzzle/400/160');
  background-size: cover;
  background-position: center;
}

.puzzle-hole {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 60px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px dashed #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) inset;
  /* 添加小凸起形状 */
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% 60%, 
    80% 60%, 
    70% 100%, 
    60% 60%, 
    0% 60%
  );
}

.puzzle-piece {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 60px;
  left: 0;
  background-color: #2196f3;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  /* 添加小凸起形状，与缺口匹配 */
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% 60%, 
    80% 60%, 
    70% 100%, 
    60% 60%, 
    0% 60%
  );
  background-image: url('https://picsum.photos/seed/puzzle/400/160');
  background-size: cover;
  background-position: center;
}

.puzzle-piece.verified {
  background-color: rgba(76, 175, 80, 0.7);
  box-shadow: 0 0 10px #4caf50;
}

.slider-container {
  position: relative;
  height: 40px;
  background-color: #f5f5f5;
  border-radius: 20px;
  overflow: hidden;
}

.slider-bg {
  position: absolute;
  height: 100%;
  background-color: #e1f5fe;
  border-radius: 20px;
  transition: width 0.3s;
}

.slider-bg.verified {
  background-color: #c8e6c9;
}

.slider-button {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: #2196f3;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.slider-button.verified {
  background-color: #4caf50;
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-animation {
  animation: success-pulse 0.8s;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.slider-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 40px;
  color: #666;
  z-index: 1;
  user-select: none;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #1976d2;
}

.reset-button {
  width: 100%;
  padding: 10px;
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.reset-button:hover {
  background-color: #e0e0e0;
}